package cloudy.hbase.dao;

import org.apache.hadoop.hbase.client.Put;
import org.apache.hadoop.hbase.client.Result;

import java.util.List;

/**
 * @Package cloudy.hbase.dao
 * @Description:
 * @Author elwyn
 * @Date 2017/9/24 15:37
 * @Email elonyong@163.com
 */
public interface HBaseDAO {
     void save(Put put,String tableName);

     void insert(String tableName,String rowKey,String family,String qualifier,String value);
     void save(List<Put> put, String tableName);

     Result getOneRow(String tableName,String rowKey);

    List<Result> getRows(String tableName, String rowKey_like);

    List<Result> getRows(String tableName, String rowKey_like, String cols[]);

    List<Result> getRows(String tableName, String startRow, String endRow);
}
